/*package main

import "github.com/gin-gonic/gin"

func search(c *gin.Context) {
	page := c.DefaultQuery("page", "0")
	key := c.PostForm("key")
	c.String(200, "page:%s, key:%s", page, key)
}

func GoSearch(c *gin.Context) {
	c.String(200, "query.html", nil)
}
func main() {
	e := gin.Default()
	e.LoadHTMLGlob("templates/*")

	e.GET("/gosearch", GoSearch)
	e.POST("/search", search)
	e.Run(":8030")
}
